package com.liu.Excel;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.liu.entity.ServeTrainItem;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ServeTrainItemExcel {
    @ExcelProperty("序号")
    private Integer id ;
    /** 宠物id */
    @ExcelProperty("宠物id")
    private Integer pid ;
    /** 用户id */
    @ExcelProperty("用户id")
    private Integer uid ;
    /** 创建时间 */
    @ExcelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date ctime ;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ExcelProperty("修改时间")
    private Date utime ;
    /**
     * 训练项目id
     * 服从命令
     * 行为纠正
     * 技巧训练
     */
    /** 训练项目id */
    @ExcelProperty("训练项目id")
    private Integer trainItemId;
    /** 服从命令 */
    @ExcelProperty("服从命令")
    private Integer obeyorder ;
    /** 行为纠正 */
    @ExcelProperty("行为纠正")
    private Integer behaviorcorrect ;
    /** 技巧训练 */
    @ExcelProperty("技巧训练")
    private Integer skilltraining ;
    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ExcelProperty("训练项目创建时间")
    private Date ictime ;
    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ExcelProperty("训练项目修改时间")
    private Date iutime ;

    @Override
    public String toString() {
        return "ServeTrainItemExcel{" +
                "id=" + id +
                ", pid=" + pid +
                ", uid=" + uid +
                ", ctime=" + ctime +
                ", utime=" + utime +
                ", trainItemId=" + trainItemId +
                ", obeyorder=" + obeyorder +
                ", behaviorcorrect=" + behaviorcorrect +
                ", skilltraining=" + skilltraining +
                ", ictime=" + ictime +
                ", iutime=" + iutime +
                '}';
    }
}
